using EloBuddy.SDK.Menu.Values;
using ExorAIO.Utilities;
using LeagueSharp.SDK;

namespace ExorAIO.Champions.Karma
{
    /// <summary>
    ///     The menu class.
    /// </summary>
    internal class Menus
    {
        /// <summary>
        ///     Sets the menu.
        /// </summary>
        public static void Initialize()
        {
            /// <summary>
            ///     Sets the menu for the Q.
            /// </summary>
            Vars.QMenu = Vars.Menu.AddSubMenu("使用 Q:");
            {
                Vars.QMenu.Add("combo", new CheckBox("连招", true));
                Vars.QMenu.Add("killsteal", new CheckBox("抢人头", true));
                Vars.QMenu.Add("harass", new Slider("骚扰 如果蓝量 >= x%", 50, 0, 101));
                Vars.QMenu.Add("clear", new Slider("清线 如果蓝量 >= x%", 50, 0, 101));

            }

            /// <summary>
            ///     Sets the menu for the W.
            /// </summary>
            Vars.WMenu = Vars.Menu.AddSubMenu("使用 W:");
            {
                Vars.WMenu.Add("combo", new CheckBox("连招", true));
                Vars.WMenu.Add("jungleclear", new Slider("清野 如果蓝量 >= x%", 50, 0, 101));
                Vars.WMenu.Add("lifesaver", new Slider("如果血量低于 < x%", 20, 10, 100));
            }

            /// <summary>
            ///     Sets the menu for the E.
            /// </summary>
            Vars.EMenu = Vars.Menu.AddSubMenu("使用 E:");
            {
                Vars.EMenu.Add("engager", new CheckBox("防御"));
                Vars.EMenu.Add("logical", new CheckBox("自动", true));
                Vars.EMenu.Add("gapcloser", new CheckBox("反突进", true));
                Vars.EMenu.Add("aoe", new Slider("自动 AoE 如果队友人数 >= x", 3, 2, 6));
            }

            /// <summary>
            ///     Sets the whitelist menu for the E.
            /// </summary>
            Vars.WhiteListMenu = Vars.Menu.AddSubMenu("盾: 名单");
            {
                foreach (var ally in GameObjects.AllyHeroes)
                {
                    Vars.WhiteListMenu.Add(ally.ChampionName.ToLower(), new CheckBox($"使用 给: {ally.ChampionName}", true));
                }
            }

            /// <summary> summary set W
            ///     Sets the menu for the R.
            /// </summary>
            Vars.RMenu = Vars.Menu.AddSubMenu("使用 R:");
            {
                Vars.RMenu.Add("empq", new CheckBox("自动 Q 加强", true));
                Vars.RMenu.Add("empe", new CheckBox("自动 E 加强", true));
            }

            /// <summary>
            ///     Sets the miscellaneous menu.
            /// </summary>
            Vars.MiscMenu = Vars.Menu.AddSubMenu("杂项");
            {
                Vars.MiscMenu.Add("support", new CheckBox("辅助 模式", true));
            }

            /// <summary>
            ///     Sets the drawings menu.
            /// </summary>
            Vars.DrawingsMenu = Vars.Menu.AddSubMenu("线圈");
            {
                Vars.DrawingsMenu.Add("q", new CheckBox("Q 范围"));
                Vars.DrawingsMenu.Add("w", new CheckBox("W 范围"));
                Vars.DrawingsMenu.Add("e", new CheckBox("E 范围"));
            }
        }
    }
}